package com.example.leave.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;

@Data
@Entity
@Table(name = "user", schema = "public")
public class User {
    @Id
    private String id;
    @Column(name = "name")
    @ApiModelProperty(value = "人员姓名")
    private String name;

    @Column(name = "office_location")
    @ApiModelProperty(value = "办公地点")
    private String officeLocation;

    @Column(name = "category")
    @ApiModelProperty(value = "人员类别")
    private String category;

    @Column(name = "entry_time")
    @ApiModelProperty(value = "入职时间")
    private Date entryTime;

    @Column(name = "duties")
    @ApiModelProperty(value = "职务")
    private String duties;

    @Column(name = "birthday")
    @ApiModelProperty(value = "出生年月")
    private Date birthday;

    @Column(name = "graduation_time")
    @ApiModelProperty(value = "毕业时间")
    private Date graduationTime;


}
